// 服务导出
export * from './JsonStorageService';
export * from './CaseManager';
export * from './PlayerManager';

// 服务实例管理器
export class ServiceManager {
  private static instance: ServiceManager;
  private caseManager: import('./CaseManager').CaseManager | null = null;
  private playerManager: import('./PlayerManager').PlayerManager | null = null;
  
  private constructor() {}
  
  static getInstance(): ServiceManager {
    if (!ServiceManager.instance) {
      ServiceManager.instance = new ServiceManager();
    }
    return ServiceManager.instance;
  }
  
  getCaseManager(): import('./CaseManager').CaseManager {
    if (!this.caseManager) {
      this.caseManager = new (require('./CaseManager').CaseManager)();
    }
    return this.caseManager;
  }
  
  getPlayerManager(): import('./PlayerManager').PlayerManager {
    if (!this.playerManager) {
      this.playerManager = new (require('./PlayerManager').PlayerManager)();
    }
    return this.playerManager;
  }
  
  reset(): void {
    this.caseManager = null;
    this.playerManager = null;
  }
}